<template>
    <div>
        <p @click="gologin">登录/注册</p>
    </div>
</template>

<script>
import { defineComponent } from 'vue'
import { useRouter } from "vue-router";
export default defineComponent({
    setup () {
        const router = useRouter()
        const gologin = ()=>{
            router.push({
                name:"login"
            })
        }

        return {gologin}
    }
})
</script>

<style scoped>

</style>